public class Zuo02{
	public static void main(String[] args){
		System.out.println("     J     A      V     V      A   ");
		System.out.println("     J    A A      V   V      A A     ");
		System.out.println(" J   J   AAAAA      V V      AAAAA     ");
		System.out.println("  J J   A     A      V      A     A      ");
	}
}